package com.ruoyi.teaching.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.persistence.*;

/**
 * 省市县镇村数据对象 j_position
 * 
 * @author ruoyi
 * @date 2022-03-22
 */
@Entity
@Data
@Table(name = "j_position")
public class JPosition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Id
    @GeneratedValue
    @Column(name = "id")
    private Long id;

    /** 省序号 */
    @Excel(name = "省序号")
    @Column(name = "province_id")
    private String provinceId;

    /** 省 */
    @Excel(name = "省")
    private String provinceName;

    /** 市 */
    @Excel(name = "市")
    private String cityId;

    /** 市序号 */
    @Excel(name = "市序号")
    private String cityName;

    /** 县序号 */
    @Excel(name = "县序号")
    private String countyId;

    /** 县 */
    @Excel(name = "县")
    private String countyName;

    /** 镇序号 */
    @Excel(name = "镇序号")
    private String townId;

    /** 镇 */
    @Excel(name = "镇")
    private String townName;

    /** 村序号 */
    @Excel(name = "村序号")
    private String villageId;

    /** 村 */
    @Excel(name = "村")
    private String villageName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProvinceId(String provinceId) 
    {
        this.provinceId = provinceId;
    }

    public String getProvinceId() 
    {
        return provinceId;
    }
    public void setProvinceName(String provinceName) 
    {
        this.provinceName = provinceName;
    }

    public String getProvinceName() 
    {
        return provinceName;
    }
    public void setCityId(String cityId) 
    {
        this.cityId = cityId;
    }

    public String getCityId() 
    {
        return cityId;
    }
    public void setCityName(String cityName) 
    {
        this.cityName = cityName;
    }

    public String getCityName() 
    {
        return cityName;
    }
    public void setCountyId(String countyId) 
    {
        this.countyId = countyId;
    }

    public String getCountyId() 
    {
        return countyId;
    }
    public void setCountyName(String countyName) 
    {
        this.countyName = countyName;
    }

    public String getCountyName() 
    {
        return countyName;
    }
    public void setTownId(String townId) 
    {
        this.townId = townId;
    }

    public String getTownId() 
    {
        return townId;
    }
    public void setTownName(String townName) 
    {
        this.townName = townName;
    }

    public String getTownName() 
    {
        return townName;
    }
    public void setVillageId(String villageId) 
    {
        this.villageId = villageId;
    }

    public String getVillageId() 
    {
        return villageId;
    }
    public void setVillageName(String villageName) 
    {
        this.villageName = villageName;
    }

    public String getVillageName() 
    {
        return villageName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("provinceId", getProvinceId())
            .append("provinceName", getProvinceName())
            .append("cityId", getCityId())
            .append("cityName", getCityName())
            .append("countyId", getCountyId())
            .append("countyName", getCountyName())
            .append("townId", getTownId())
            .append("townName", getTownName())
            .append("villageId", getVillageId())
            .append("villageName", getVillageName())
            .toString();
    }
}
